package com.codebattery.util;

import java.util.regex.Pattern;

/**
 * 字符串工具类
 *
 * @Author cay91
 * @Date 2020-08-13 12:07 AM
 * @Version 1.0
 */
public class StringUtil {
    public static boolean isInteger(String str) {
        Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
        return pattern.matcher(str).matches();
    }
}
